package 策略模式;

public class Controller {


    public static String  test(){
        //如果每一次都需要加一个类型, 都会破坏Controller的封装性
        FindType findType = new FontFindType();
        StrateFactory strateFactory = new StrateFactory(findType);
        return   strateFactory.find();
    }

    public static void main(String[] args) {
        System.out.println(test());
    }
}
